package com.cy.pj.sys.web.controller;

import com.cy.pj.sys.pojo.SysLog;
import com.cy.pj.sys.service.SysLogService;
import com.cy.pj.sys.web.pojo.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/log/")
@RestController
public class SysLogController {
    @Autowired
    private SysLogController sysLogController;
    @GetMapping("dofindlogs")
    public JsonResult doFinfLogs(SysLog sysLog){
        return new JsonResult(SysLogService.findLogs(sysLog));
    }
}
